﻿@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <link href="~/Content/easyui/themes/bootstrap/easyui.css" rel="stylesheet" />
    <script src="~/Content/easyui/jquery.min.js"></script>
    <script src="~/Content/easyui/jquery.easyui.min.js"></script>
    <title>Test</title>
</head>
<body >
    <div id="cc" class="easyui-layout" style="width:600px;height:400px;">
        <div data-options="region:'north',title:'North Title',split:true" style="height:100px;"></div>
        <div data-options="region:'south',title:'South Title',split:true" style="height:100px;"></div>
        <div data-options="region:'east',title:'East',split:true" style="width:100px;"></div>
        <div data-options="region:'center',title:'center title'" style="padding:5px;background:#eee;"></div>
    </div>

    <script type="text/javascript">

        $(function () {

            $('#cc').layout('add', {
                region: 'west',
                width: 180,
                title: 'West Title',
                split: true,
                tools: [{
                    iconCls: 'icon-add',

                    handler: function () { alert('add') }
                }, {
                    iconCls: 'icon-remove',
                    handler: function () { alert('remove') }
                }]
            });
        })
    </script>

</body>
</html>
